package edu.java.homework.hw09.tests.test0627;

//Test0627
//Äàäåí å êîäúò:

interface HeavenlyBody {
    String describe();
}

class Star implements HeavenlyBody {
    String starName;

    public String describe() {
	return "star" + starName;
    }
}

class Planet {
    String name;
    Star orbiting;

    public String describe() {
	return "planet " + name + " orbiting " + orbiting.describe();
    }
    
    public static void main(String[] args) {
	System.out.println("It runs.");
    }
}

/*
 * Êîè òâúðäåíèÿ ñà âåðíè: (a) Íÿìà äà ñå òðàíñëèðà; 
 * (b)
 *  (c) Òðàíñëàöèÿòà ùå å
 * íåóñïåøíà àêî íàâñÿêúäå â êëàñ Star ñå çàìåíè starName ñ bodyName; 
 * (d)Òðàíñëàöèÿòà ùå å íåóñïåøíà àêî íàâñÿêúäå â êëàñ Star ñå çàìåíè starName ñ
 * name;
 *  (e) îáåêò îò êëàñ Planet ìîæå äà ñå ïðèñâîè íà ïðîìåíëèâà îò òèï
 * HavenlyBody.
 */

// (a) greshka, shte moje da se translira
// (b)
// (c) greshka, nqma znachenie kakav shte e identifikatora na String-poleto
// (d)greshka, nqma znachenie kakav shte e identifikatora na String-poleto
// (e) greshka; Klasat "Planet" ne implementira interfeisa "HeavenlyBody"

